package pageobjects;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class PortalPagePO {
    public WebDriver driver;
    By invitePeopleClose = By.xpath("//div[@class='ui-dialog-icon ui-dialog-closeIcon']");
    By moreApplicaTion = By.xpath("//span[@class='e10header-menu-item-name']");
    By Knowledge = By.xpath("//a[@title='知识文档']");

    public PortalPagePO(WebDriver driver) {
        this.driver = driver;
    }

    /**
     * 关闭弹窗
     *
     * @return
     */
    public WebElement invitePeopleClose() {
        return driver.findElement(invitePeopleClose);
    }

    /**
     * 更多应用
     * @return
     */
    public WebElement moreApplicaTion() {
        return driver.findElement(moreApplicaTion);
    }

    /**
     * 知识文档
     * @return
     */
    public  WebElement Knowledge(){
        return driver.findElement(Knowledge);
    }

}
